Page({
  data: {
    activities: []
  },
  onLoad() {
    // this.getActivities()
  },
  // 获取活动列表
  getActivities() {
    wx.request({
      url: 'https://your-api-domain.com/activities',
      method: 'GET',
      data: {
        days: 7 // 获取未来7天的活动
      },
      success: (res) => {
        this.setData({ activities: res.data })
      }
    })
  }
})
